package domoticus;

public class LightSensor extends Sensor{
	
	String value;
        private final String data = "Luminosity";
	private Boolean state;
        DBConnectionCon con;
	
	public LightSensor(DBConnectionCon con){
		super();
		this.con = con;
	}
	
	
	public String getCurrentValue(String userName,Integer feedId) {
		value = con.getCurrentValue(userName, feedId, data);
                return value;
	}

	
	public Boolean getState() {
		
		return state;
	}
}
